package com.eight.paper.admin.service.impl;

import java.util.List;
import com.eight.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.eight.paper.admin.mapper.ExamPaperImageMapper;
import com.eight.paper.admin.domain.ExamPaperImage;
import com.eight.paper.admin.service.IExamPaperImageService;

/**
 * 考生镜像采集明细Service业务层处理
 * 
 * @author eight
 * @date 2024-05-04
 */
@Service
public class ExamPaperImageServiceImpl implements IExamPaperImageService 
{
    @Autowired
    private ExamPaperImageMapper examPaperImageMapper;

    /**
     * 查询考生镜像采集明细
     * 
     * @param id 考生镜像采集明细主键
     * @return 考生镜像采集明细
     */
    @Override
    public ExamPaperImage selectExamPaperImageById(Integer id)
    {
        return examPaperImageMapper.selectExamPaperImageById(id);
    }

    /**
     * 查询考生镜像采集明细列表
     * 
     * @param examPaperImage 考生镜像采集明细
     * @return 考生镜像采集明细
     */
    @Override
    public List<ExamPaperImage> selectExamPaperImageList(ExamPaperImage examPaperImage)
    {
        return examPaperImageMapper.selectExamPaperImageList(examPaperImage);
    }

    /**
     * 新增考生镜像采集明细
     * 
     * @param examPaperImage 考生镜像采集明细
     * @return 结果
     */
    @Override
    public int insertExamPaperImage(ExamPaperImage examPaperImage)
    {
        examPaperImage.setCreateTime(DateUtils.getNowDate());
        return examPaperImageMapper.insertExamPaperImage(examPaperImage);
    }

    /**
     * 修改考生镜像采集明细
     * 
     * @param examPaperImage 考生镜像采集明细
     * @return 结果
     */
    @Override
    public int updateExamPaperImage(ExamPaperImage examPaperImage)
    {
        return examPaperImageMapper.updateExamPaperImage(examPaperImage);
    }

    /**
     * 批量删除考生镜像采集明细
     * 
     * @param ids 需要删除的考生镜像采集明细主键
     * @return 结果
     */
    @Override
    public int deleteExamPaperImageByIds(Integer[] ids)
    {
        return examPaperImageMapper.deleteExamPaperImageByIds(ids);
    }

    /**
     * 删除考生镜像采集明细信息
     * 
     * @param id 考生镜像采集明细主键
     * @return 结果
     */
    @Override
    public int deleteExamPaperImageById(Integer id)
    {
        return examPaperImageMapper.deleteExamPaperImageById(id);
    }
}
